import { combineReducers } from 'redux';

function todo(state = {}, action) {
  switch (action.type) {
    case 'ADD_TODO':
      return '状态内容：' + action.text
    default:
      return state
  }
}

const todoApp = combineReducers({
  todo
});

export default todoApp;